#include "LoadXMLWidget.h"

LoadXMLWidget::LoadXMLWidget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::LoadXMLWidgetClass())
{
    ui->setupUi(this);

    QString filePath = QCoreApplication::applicationDirPath() + QDir::separator() + "XML" + QDir::separator() + "Link16通信电台网_1201.xml";

    protocolParser* protocol = new protocolParser(filePath, this);
    QSharedPointer<SignalSystem::Link4A> link4a = protocol->getLink4A();
    QSharedPointer<SignalSystem::ConventSimulation> conSim = protocol->getConventSimulation();
    QSharedPointer<SignalSystem::Link11> link11 = protocol->getLink11();
    QSharedPointer<SignalSystem::Link16> link16 = protocol->getLink16();
    QSharedPointer<SignalSystem::TTNT> ttnt = protocol->getTTNT();
    QSharedPointer<SignalSystem::HAVEQUICK> haveQUICK = protocol->getHAVEQUICK();
    QSharedPointer<SignalSystem::SINCGARS> sincGARS = protocol->getSINCGARS();
    QSharedPointer<SignalSystem::EPLRS> eplrs = protocol->getEPLRS();
    QSharedPointer<SignalSystem::UV> uv = protocol->getUV();
    QSharedPointer<SignalSystem::radioStation171> statio171 = protocol->getRadioStation171();
}

LoadXMLWidget::~LoadXMLWidget()
{
    delete ui;
}

